{% extends '../../../layout/admin-base.html' %}
<script src="{{ assets_path("js/base.js")}}"></script>
{% block page %}
<h3 class="page-title">
    教职工信息 <small>修改</small>
</h3>
<ul class="breadcrumb">
    <li>
        <i class="icon-home"></i>
        <a href="index.html">基本信息管理</a> 
        <i class="icon-angle-right"></i>
    </li>
    <li>
        <a href="{{url('admin/user/staff')}}">教职工信息管理</a>
        <i class="icon-angle-right"></i>
    </li>
    <li><span>修改</span></li>
</ul>
{% end%}
{% block content %}

<div class="row-fluid">
    <div class="span12">
        <div class="portlet box blue">
            <div class="portlet-title">
                <div class="caption"><i class="icon-plus"></i>修改教职工</div>
                <div class="tools">
                    <a href="javascript:;" class="collapse"></a>
                </div>
            </div>
            <div class="portlet-body form">
                <!-- BEGIN FORM-->
                <form action="" class="form-horizontal" method="post" enctype ="multipart/form-data">
                    <div class="control-group">
                        <label class="control-label">手机号<span class="required">*</span></label>
                        <div class="controls">
                            <input type="text" class="span6 m-wrap" name="Ftel" value="{{ teacher.get('Ftel', '') }}" />
                            <span class="help-inline">使用手机号登陆</span>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">登录名<span class="required">*</span></label>
                        <div class="controls">
                            <input type="text" class="span6 m-wrap" name="Fusername" value="{{ teacher.get('Fuser_name', '') }}" />
                            <span class="help-inline">Some hint here</span>
                        </div>
                    </div>
                    <!-- <div class="control-group">
                        <label class="control-label">登陆密码<span class="required">*</span></label>
                        <div class="controls">
                            <input type="password" class="span6 m-wrap" name="Fpasswd" value="{{ teacher.get('Fpwd', '') }}" />
                            <span class="help-inline">不要小于5位，使用数字字母混排，初始密码为123456</span>
                        </div>
                    </div> -->

                    <div class="control-group">
                        <label class="control-label">教职工姓名<span class="required">*</span></label>
                        <div class="controls">
                            <input type="text" class="span6 m-wrap" name="Fname" value="{{ teacher.get('Fname', '') }}" />
                            <span class="help-inline">Some hint here</span>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">年龄<span class="required">*</span></label>
                        <div class="controls">
                            <input type="text" class="span6 m-wrap" name="Fage" value="{{ teacher.get('Fage', '') }}" />
                            <span class="help-inline">Some hint here</span>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">地址<span class="required">*</span></label>
                        <div class="controls">
                            <input type="text" class="span6 m-wrap" name="Faddress" value="{{ teacher.get('Faddress', '') }}" />
                            <span class="help-inline">Some hint here</span>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">所属学院</label>
                        <div class="controls">
                            <select class="span6 m-wrap" name="Fschool_id" id="Fschool_id">
                                {% for i in school %}
                                    <option value="{{ i['Fid'] }}" {% if i["Fid"]==teacher.get("Fschool_id") %}selected='selected'{% end %}>{{ i['Fname'] }}</option>
                                {% end %}
                            </select>
                            <span class="help-inline">Some hint here</span>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">头像</label>
                        <div class="controls">
                            <input type="file" class="span6 m-wrap" name="Favatar" />
                            <span class="help-inline"><img src="/static{{ teacher.get('Favatar') }}"></span>
                        </div>
                    </div>
                    <div class="form-actions">
                        <button type="submit" class="btn blue">保存</button>
                        <!-- <button type="button" class="btn">保存并新增下一条</button> -->
                    </div>
                </form>
                <!-- END FORM--> 
            </div>
        </div>
    </div>
</div>
{% end%}